﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using Infinity.Expressions.Core;

namespace Infinity.Expressions.Commands
{
	/// <summary>
	/// A szekvencia általánosabb reprezentációja
	/// </summary>
	public partial class BlockCommand : AbstractProgram
	{
		public BlockCommand()
		{
			subPrograms = new List<AbstractProgram>();
		}

		public override void Run()
		{

		}

		protected override Expression BodyExpression
		{
			get
			{
				return Expression.Block(subPrograms.Select((x) => x.ToExpression()));
			}
		}
	}
}
